[

/*****************************************
	The engine controller file is eR's branching mechanism that looks at the incoming url and conditionally loads the desired page.
	Note the select/case statement loads the correct content.
	In this example, the $function2 var represents a page within the about us section, i.e., mydoamin/aboutus/seeme.
	If no $function2 var is found we default to the About Us main page.
	The additional function vars in this example capture values in any other incoming url params.
	
	Note the currentpath var is a helper for the includeFile ctag so we don't have to fuss with writing the full paths.
	
******************************************/

	var('currentpath')=engine_path(Include_CurrentPath);
	var('function2'=var('param2'));
	var('function3'=var('param3'));
	var('function4'=var('param4'));
	
	// pick a template from the /_config/lib/template.lasso file
	$useLayout = 'aboutus';
	
	Select($function2);
	
		case('seeme');
		// reset the template
			$useLayout = 'blank';
		// load the seeme file
			includeFile('dsp_seeme.lasso');
		
		// default About Us main page
		case;
		// find common code files in _common/ folder
			includeCommon('example.inc');
		// load the about us file
			includeFile('dsp_aboutus.lasso');
			
	/Select;
	
]